const defaultApps = [{
  name: '学习论坛',
  icon: 'tags',
  link: 'https://school.thoughtworks.cn/bbs/login'
}, {
  name: '成长日志',
  icon: 'star',
  link: 'https://school.thoughtworks.cn/practise-diary'
}]

export default (state = defaultApps, action) => {
  switch (action.type) {
    case 'LOAD_APPS':
      return action.apps.data
    default:
      return state
  }
}